package com.lib.model;

import com.alibaba.fastjson.JSON;
import com.lib.dto.InstallmentRequestDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import org.mapstruct.factory.Mappers;

import javax.persistence.*;
import java.util.Date;
import java.util.UUID;

/**
 * Created by duqingxiang on 17/5/25.
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "installment_request")
public class InstallmentRequest {

    @Id
    @GeneratedValue(generator = "UIDGenerator")
    @GenericGenerator(name = "UIDGenerator", strategy = "uuid")
    private String id;

    private long customerId;//租客的id

    private long agentId;//中介的id

    private long infoId;//详细信息的id

    private String phone;//手机号

    private double monthlyRent;//月租金

    private int rentalPeriod;//租期

    private Date startDate;//起租日期

    private int status;//状态

    private Date createdDate;//创建日期


}
